# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-uritemplate
_pkgname=uritemplate
pkgver=3.0.1
pkgrel=4
pkgdesc='A Python implementation of RFC6570.'
url='https://pypi.org/project/uritemplate/#files'
arch=('any')
license=('Apache' 'BSD')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://github.com/sigmavirus24/uritemplate/archive/$pkgver.tar.gz")
sha512sums=('7d71a817420bbd8747cef81148a8b2800b8be5257bca3474cadf1484385c280e3caabcf49d00afdc255175e8b7cf5e5d2640a34168b82af7b033d62f0573c23b')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

